package com.example.housingRentalSystem.mapper;

import com.example.housingRentalSystem.bean.House;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import com.example.housingRentalSystem.bean.Collect;
import org.apache.ibatis.annotations.Param;

/**
 * @author 王硕
 * @version jdk21
 * @className CollectMapper
 * @description
 * @date 2025/3/22 16:56
 */
@Mapper
public interface CollectMapper {

    int insertCollect(Collect collect);

    int deleteCollect(@Param("userId") Integer userId, @Param("houseId") Integer houseId);

    int checkCollected(@Param("userId") Integer userId, @Param("houseId") Integer houseId);

    Page<House> selectCollectList(@Param("userId") Integer userId);
}